package com.my.study.init.serverInit;

import com.my.study.enums.PayTypeEnum;
import com.my.study.init.dto.PaymentDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class WxPaymentServiceImpl extends BasePaymentService {

    @Override
    public PayTypeEnum getPayTypeEnum() {
        return PayTypeEnum.WX;
    }

    @Override
    public boolean pay(PaymentDTO paymentDTO) {
        onBefore();
        log.info("WxPaymentServiceImpl  pay success");
        onAfter();
        return false;
    }
}
